#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/mman.h>
#include<sys/time.h>
#include <string.h>
#include <fcntl.h>
#include <linux/fb.h>
#include<sys/ioctl.h>
#include<time.h>
#include <pthread.h>

struct img_info
{
    int width;
    int height;
    int bpp;
    char *rgb;
};


// 只要打开目录就能获得的各个图片的信息
struct filenode
{
    char *name;
    FILE *fp;
    int  fmt;
    struct img_info *info; // info-->NULL 
    int cnt;

    struct file node *prev;
    struct file node *next;
};